package com.hzdl.car.service.impl;

import com.hzdl.car.bean.Statistic;
import com.hzdl.car.mapper.StatisticMapper;
import com.hzdl.car.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {
    @Autowired
    private StatisticMapper sm;


    @Override
    public List<Statistic> countAddress() {
        return sm.countAddress();
    }

    @Override
    public List<Statistic> countSales(Integer year) {
        return sm.countSales(year);
    }

    @Override
    public List<Statistic> countAssis(Integer year) {
        return sm.countAssis(year);
    }
}
